package meta.api.web.common.dao;

import java.util.HashMap;
import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class CmnDao {

    @Autowired
    private SqlSessionTemplate sqlSession;

    private static final String NAMESPACE = "meta.api.web.common.dao.cmn.";

    public Long getSeqNextVal(String seqName) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("seqName", seqName);
        return sqlSession.selectOne(NAMESPACE + "getSeqNextVal", params);
    }
}
